aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/[username]
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-03-02 21:22:41 -0800
committerAdam Soltys <[email protected]>2026-03-02 21:22:41 -0800
commit7c4d393feaf9c594fa6bdae274abc0edd45c3373 (patch)
tree74ea34dbbc9b7399b910ae92af9208f2c787ecde /src/routes/(app)/[username]
parent90f29dce3d675f850e48ede2edb187e6c53b84da (diff)
downloadcoinos-ui-7c4d393feaf9c594fa6bdae274abc0edd45c3373.tar.gz
coinos-ui-7c4d393feaf9c594fa6bdae274abc0edd45c3373.zip
offline mode
Diffstat (limited to 'src/routes/(app)/[username]')
-rw-r--r--src/routes/(app)/[username]/(profile)/+page.svelte8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/routes/(app)/[username]/(profile)/+page.svelte b/src/routes/(app)/[username]/(profile)/+page.svelte
index 2bde3e08..9c0d2203 100644
--- a/src/routes/(app)/[username]/(profile)/+page.svelte
+++ b/src/routes/(app)/[username]/(profile)/+page.svelte
@@ -5,7 +5,7 @@
import Balance from "$comp/Balance.svelte";
import Spinner from "$comp/Spinner.svelte";
import { t } from "$lib/translations";
- import { installPrompt, password } from "$lib/store";
+ import { installPrompt, password, cachedAccounts, cachedRates } from "$lib/store";
import { afterNavigate, goto, invalidate, preloadData } from "$app/navigation";
import { page } from "$app/stores";
import { versions, post, fail, getCookie } from "$lib/utils";
@@ -84,6 +84,12 @@
$effect(() => {
if (user) user.savings = 0;
});
+ $effect(() => {
+ if (accounts?.length) $cachedAccounts = accounts;
+ });
+ $effect(() => {
+ if (rates) $cachedRates = rates;
+ });
let { host } = $derived($page.url);
</script>